# -*- coding: UTF-8 -*-

import  requests,json


def login():
    parm = {"account": "15507553617", "password": "123456", "fromType": "pc"}
    url = "https://testpassport.rabbitpre.com/api/sso/login"
    p = requests.session()
    resu = p.post(url, json=parm,verify=False)
    repon=json.loads(resu.text).get("errorCode")
    if repon == "SUCCESS":
        print("登录成功")
    else:
        print("登录失败")

if __name__ == '__main__':
    login()